<#assign jsPath='${contextPath}/static/js' >
<#assign imagePath='${contextPath}/static/images' >
<#assign cssPath='${contextPath}/static/css' >
<#assign toolPath='${contextPath}/static/tool' >
<#assign gridRowHeight='height:2.8em;'>
<#if (Session['SESSION_KEY_USER'])??>
    <#assign isHeadUser=Session['SESSION_KEY_USER'].agentId ==0&&Session['SESSION_KEY_USER'].supplierId ==0 >
    <#assign isAgentUser=Session['SESSION_KEY_USER'].agentId != 0 && Session['SESSION_KEY_USER'].agencyId == 0>
    <#assign isAgencyUser=Session['SESSION_KEY_USER'].agencyId != 0>
    <#assign isSupplierUser=Session['SESSION_KEY_USER'].supplierId !=0>
</#if>

<#macro has_oper oper_code>
    <#if Session['SESSION_KEY_USER'].hasOper(oper_code)><#nested></#if>
</#macro>
<#macro has_any_oper oper_codes>
    <#if Session['SESSION_KEY_USER'].hasAnyOper(oper_codes)><#nested></#if>
</#macro>
<#macro has_any_module oper_code>
    <#if Session['SESSION_KEY_USER'].hasAnyModule(oper_code)><#nested></#if>
</#macro>
<#function contain_oper oper_code>
    <#return Session['SESSION_KEY_USER'].hasOper(oper_code)>
</#function>
<#function has_multi_oper oper_code>
    <#return Session['SESSION_KEY_USER'].containOperCount(oper_code) gt 1>
</#function>

<#macro json_jump json="json">
if(${json}.timeout) { document.location.href = App.loginUrl; return false; }
</#macro>

<#macro html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <#nested>
</html>
</html>
</#macro>

<#macro head>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <script type="text/javascript" src="${toolPath}/jquery/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="${toolPath}/jquery/jquerySession.js"></script>
    <script type="text/javascript" src="${toolPath}/jquery/jquery.cookie.js"></script>
    <script type="text/javascript" src="${toolPath}/jquery/jquery.json-2.4.js"></script>
    <script type="text/javascript" src="${toolPath}/jquery/jquery.nanoscroller.js"></script>
    <script type="text/javascript" src="${jsPath}/app-template.js"></script>
    <link href="${toolPath}/jquery-easyui-1.3.6/themes/gray/easyui.css" rel="stylesheet" type="text/css"/>
    <link href="${toolPath}/jquery-easyui-1.3.6/themes/icon.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="${toolPath}/jquery-easyui-1.3.2/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="${toolPath}/jquery-easyui-1.3.2/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${contextPath}/static/tool/highcharts/highcharts.js"></script>
    <script src="http://cdn.hcharts.cn/highcharts/modules/exporting.js"></script>
    <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=${controller.appConfig.mapKey}"></script>
    <script type="text/javascript" src="${contextPath}/static/tool/My97DatePicker/WdatePicker.js"></script>
    <link href="${cssPath}/global.css" rel="stylesheet" type="text/css"/>
    <link href="${cssPath}/main.css" rel="stylesheet" type="text/css"/>
    <link href="${cssPath}/nanoscroller.css" rel="stylesheet" type="text/css"/>
    <title>${(controller.appConfig.pageTitle)!''}</title>
    <script type="text/javascript">
        jQuery.ajaxSettings.traditional = true;
        var App = {
            contextPath: '${contextPath}',
            imagePath: '${imagePath}',
            licenceUrl: '${contextPath}/security/licence/index.htm',
            loginUrl: '${contextPath}/security/main/index.htm',
            sessionUser: {
                id: '${(Session['SESSION_KEY_USER'].id)!''}',
                realName: '${(Session['SESSION_KEY_USER'].realName)!''}'
            }
        };
        function jump(json) {
            if (json.timeout) {
                document.location.href = App.loginUrl;
                return false;
            }
            return true;
        }
        function password() {
            App.dialog.show({url: '${contextPath}/security/main/password.htm', drag: true})
        }
        function gridRowStyler() {
            return '${app.gridRowHeight}';
        }

    </script>
    <script type="text/javascript" src="${jsPath}/common.js"></script>
    <#nested>
</head>
</#macro>

<#macro body clazz=''>
<body>
    <#nested>
<script>
    $(function () {
        $(".splitter span").click(function () {
            if ($(".left_bar").hasClass("none")) {
                $(".left_bar").removeClass("none");
                $(".content").css({"left": "210px"});
                $(this).removeClass("split_right").addClass("split_left");
            } else {
                $(".left_bar").addClass("none");
                $(".content").css({"left": "9px"});
                $(this).addClass("split_right").removeClass("split_left");
            }
        });
        $(".nano").nanoScroller({alwaysVisible: true});
    });

    function password() {
        App.dialog.show({
            css: 'width:528px;height:230px;overflow:visible;',
            title: '修改密码',
            href: "${contextPath}/security/main/password.htm"
        });
    }
    <#--新增：查看运营商余额详细-->
    function viewAgentMoney() {
        App.dialog.show({
            css: 'width:780px;height:595px;',
            title: '账户余额详情',
            href: "${contextPath}/security/main/viewAgentMoney.htm"
        });
    }
    <#--新增：查看总部余额详细-->
    function viewPlatformMoney() {
        App.dialog.show({
            css: 'width:780px;height:595px;',
            title: '账户余额详情',
            href: "${contextPath}/security/main/viewPlatformMoney.htm"
        });
    }
    <#--新增：查看代理商余额详细-->
    function viewAgencyMoney() {
        App.dialog.show({
            css: 'width:780px;height:595px;',
            title: '账户余额详情',
            href: "${contextPath}/security/main/viewAgencyMoney.htm"
        });
    }

</script>
</body>
</#macro>

<#macro container>
<div class="container">
    <#nested>
</div>
</#macro>

<#macro banner >
<div class="header">
    <div class="header_top">
        <div class="logo"><img height="50px" style="padding-top: 5px" src="${imagePath}/logo.png"/></div>
        <div class="user_info">
            <span class="portrait">
                   	<img src="<#if Session['SESSION_KEY_USER'].portrait?? && Session['SESSION_KEY_USER'].portrait?length gt 0>${Session['SESSION_KEY_USER'].portrait}<#else>${imagePath}/user.jpg</#if>"/>
                </span>
            <span class="user_name">欢迎您，${Session['SESSION_KEY_USER'].username}</span>
            <i class="arrow"></i>

            <div class="user_menu">
                <a href="javascript:password()">修改密码</a>
                <a href="${contextPath}/security/main/logout.htm">退出</a>
            </div>

        </div>
        <div class="switch">
            <span class="name">
                <#if (Session['SESSION_KEY_USER'].agentName)?? && (Session['SESSION_KEY_USER'].agentName)?length gt 0>
                ${(Session['SESSION_KEY_USER'].agentName)!''}
                <#else>
                    选择运营商
                </#if>
            </span>
            <i class="arrow"></i>
            <#if Session['SESSION_KEY_USER'].agentTree??>
                <div class="switch_menu">
                    <ul class="easyui-tree"
                        url="${contextPath}/security/main/agent_tree.htm"
                        lines="true"
                        data-options="
                                onClick: function(node) {
                                    var id = '' + node.id;
                                    if(id) {
                                        var indexAgency = id.indexOf('agency-');
                                        if(indexAgency >= 0) {
                                            var array = id.split('-');
                                            document.location.href = '${contextPath}/security/main/agent.htm?agentId=' + array[1] + '&agencyId=' + array[2]
                                        }else {
                                            document.location.href = '${contextPath}/security/main/agent.htm?agentId=' + node.id
                                        }
                                    }
                                }
                                ">
                    </ul>
                </div>
            </#if>
        </div>
    </div>
</div>
</#macro>

<#macro menu>
<div class="left_bar">

    <div class="user_info">
        <div class="base_info clearfix">
            <div class="portrait">
                <img src="<#if Session['SESSION_KEY_USER'].portrait?? && Session['SESSION_KEY_USER'].portrait?length gt 0>${Session['SESSION_KEY_USER'].portrait}<#else>${imagePath}/user.jpg</#if>"/>
            </div>
            <h3 class="user_name">${Session['SESSION_KEY_USER'].username}</h3>

            <p class="user_role"><#if Session['SESSION_KEY_USER'].admin=true>系统管理员</#if></p>
        </div>
        <#--新增：-->
        <#if Session['SESSION_KEY_USER'].type==Session['USER_TYPE_PLATFORM'].value>
            <ul class="user_bar clearfix">
                <li>
                    <a href="#">
                        <span class="float_right" onclick="viewPlatformMoney()">${Session['SESSION_KEY_USER'].balance}元</span>
                        <span class="float_left" onclick="viewPlatformMoney()">账户余额</span>

                    </a>
                </li>
            </ul>
        </#if>

        <#if Session['SESSION_KEY_USER'].type==Session['USER_TYPE_AGENT'].value>
            <ul class="user_bar clearfix">
                <li>
                    <a href="#">
                        <span class="float_right" onclick="viewAgentMoney()">${Session['SESSION_KEY_USER'].balance}元</span>
                        <span class="float_left" onclick="viewAgentMoney()">账户余额</span>
                    </a>
                </li>
            </ul>
        </#if>
        <#if Session['SESSION_KEY_USER'].type==Session['USER_TYPE_AGENCY'].value>
            <ul class="user_bar clearfix">
                <li>
                    <a href="#">
                        <span class="float_right" onclick="viewAgencyMoney()">${Session['SESSION_KEY_USER'].balance}元</span>
                        <span class="float_left" onclick="viewAgencyMoney()">账户余额</span>
                        <#--账户余额-->
                    </a>
                </li>
            </ul>
        </#if>
    </div>
    <div class="nav nano">
        <div class="nano_con">

            <#if Session['SESSION_KEY_USER'].type==Session['USER_TYPE_SUPPLIER'].value>
                <dl>
                    <dt onclick="javascript:window.location.href='${contextPath}/security/hdw/supplier/index.htm'">
                        <span class="icon icon_pz"></span>
                        <span class="text">厂商</span>
                    </dt>
                </dl>
            <#else>
                <dl <#if menuCode?starts_with("00")>class="selected"</#if>>
                    <dt onclick="javascript:window.location.href='${contextPath}/security/main/index.htm'">
                        <span class="icon icon_pz"></span>
                        <span class="text">首页</span>
                    </dt>
                </dl>
                <@has_any_oper oper_codes=['1_1_1', '1_2_1', '1_4_1', '1_5_1','1_7_1', '1_8_1', '1_9_1', '1_10_1']>
                    <dl <#if menuCode?starts_with("01")>class="selected"</#if>>
                        <dt>
                            <span class="icon icon_pz"></span>
                            <span class="text">运营商管理</span>
                        </dt>
                        <#if contain_oper('1_1_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0101'>selected</#if>"
                                   href="${contextPath}/security/basic/agent/index.htm">运营商管理</a></dd>
                        </#if>
                        <#if contain_oper('1_2_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0102'>selected</#if>"
                                   href="${contextPath}/security/hdw/agency/index.htm">代理商管理</a>
                            </dd>
                        </#if>
                        <#if contain_oper('1_4_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0103'>selected</#if>"
                                   href="${contextPath}/security/hdw/supplier/index.htm">厂商管理</a>
                            </dd>
                        </#if>
                        <#if contain_oper('1_5_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0104'>selected</#if>"
                                   href="${contextPath}/security/basic/passport/index.htm">客户管理</a>
                            </dd>
                        </#if>
                        <#if contain_oper('1_7_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0105'>selected</#if>"
                                   href="${contextPath}/security/hdw/rescuer/index.htm">移动救援</a>
                            </dd>
                        </#if>
                        <#if contain_oper('1_9_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0107'>selected</#if>"
                                   href="${contextPath}/security/basic/role/index.htm">角色管理</a>
                            </dd>
                        </#if>
                        <#if contain_oper('1_10_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0108'>selected</#if>"
                                   href="${contextPath}/security/basic/dept/dept_index.htm">部门管理</a></dd>
                        </#if>
                        <#if contain_oper('1_8_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0106'>selected</#if>"
                                   href="${contextPath}/security/basic/user/index.htm">用户管理</a>
                            </dd>
                        </#if>
                    </dl>
                </@has_any_oper>
                <@has_any_oper oper_codes=['2_1_1', '2_2_1', '2_3_1', '2_4_1', '2_5_1']>
                    <dl <#if menuCode?starts_with("02")>class="selected"</#if>>
                        <dt>
                            <span class="icon icon_pz"></span>
                            <span class="text">设备管理</span>
                        </dt>
                        <#if contain_oper('2_1_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0201'>selected</#if>"
                                   href="${contextPath}/security/hdw/cabinet/index.htm">终端编号管理</a></dd>
                        </#if>
                        <#if contain_oper('2_2_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0202'>selected</#if>"
                                   href="${contextPath}/security/hdw/cabinet_strategy/index.htm">终端策略管理</a></dd>
                        </#if>
                        <#if contain_oper('2_4_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0204'>selected</#if>"
                                   href="${contextPath}/security/hdw/exchange_price/index.htm">换电价钱基础套餐</a></dd>
                        </#if>
                        <#if contain_oper('2_5_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0205'>selected</#if>"
                                   href="${contextPath}/security/hdw/exchange_price_setting/index.htm">换电价钱套餐</a></dd>
                        </#if>
                    <#--<#if contain_oper('2_3_1')>-->
                    <#--<dd><a class="<#if menuCode?? && menuCode =='0203'>selected</#if>"-->
                    <#--href="${contextPath}/security/main/index.htm">终端广告管理</a></dd>-->
                    <#--</#if>-->
                    </dl>
                </@has_any_oper>
                <@has_any_oper oper_codes=['3_1_1', '3_3_1', '3_4_1', '3_5_1','3_6_1', '3_7_1', '3_8_1','3_9_1', '3_10_1','3_11_1','3_12_1','3_13_1','3_14_1','3_15_1','3_16_1','3_17_1']>
                    <dl <#if menuCode?starts_with("03")>class="selected"</#if>>
                        <dt>
                            <span class="icon icon_pz"></span>
                            <span class="text">换电管理</span>
                        </dt>
                        <#if contain_oper('3_1_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0301'>selected</#if>"
                                   href="${contextPath}/security/hdw/battery_pack/index.htm">电池组管理</a></dd>
                        </#if>
                        <#if contain_oper('3_3_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0302'>selected</#if>"
                                   href="${contextPath}/security/hdw/battery/index.htm">电池管理</a></dd>
                        </#if>
                        <#if contain_oper('3_9_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0308'>selected</#if>"
                                   href="${contextPath}/security/hdw/battery_report_log/index.htm">电池上报日志</a></dd>
                        </#if>
                        <#if contain_oper('3_4_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0303'>selected</#if>"
                                   href="${contextPath}/security/hdw/exchange_order/index.htm">换电订单</a></dd>
                        </#if>
                        <#if contain_oper('3_5_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0304'>selected</#if>"
                                   href="${contextPath}/security/hdw/bicycle/index.htm">电动车管理</a></dd>
                        </#if>
                        <#if contain_oper('3_6_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0305'>selected</#if>"
                                   href="${contextPath}/security/basic/customer_deposit_gift/index.htm">充值优惠</a></dd>
                        </#if>
                        <#if contain_oper('3_7_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0306'>selected</#if>"
                                   href="${contextPath}/security/hdw/agent_hdw_setting/index.htm">换电价格</a></dd>
                        </#if>
                        <#if contain_oper('3_10_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0309'>selected</#if>"
                                   href="${contextPath}/security/hdw/unregister_battery_report_log/index.htm">未注册电池上报日志</a></dd>
                        </#if>
                        <#if contain_oper('3_11_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0310'>selected</#if>"
                                   href="${contextPath}/security/hdw/unregister_battery/index.htm">未注册电池</a></dd>
                        </#if>
                        <#if contain_oper('3_12_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0311'>selected</#if>"
                                   href="${contextPath}/security/hdw/exchange_packet/index.htm">换电套餐</a></dd>
                        </#if>
                        <#if contain_oper('3_13_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0312'>selected</#if>"
                                   href="${contextPath}/security/hdw/exchange_packet_order/index.htm">换电套餐订单</a></dd>
                        </#if>
                        <#if contain_oper('3_14_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0313'>selected</#if>"
                                   href="${contextPath}/security/hdw/exchange_packet_order_refund/index.htm">换电套餐退款订单</a></dd>
                        </#if>
                        <#if contain_oper('3_15_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0314'>selected</#if>"
                                   href="${contextPath}/security/basic/customer_foregift_order/index.htm">客户押金订单</a></dd>
                        </#if>
                        <#if contain_oper('3_16_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0315'>selected</#if>"
                                   href="${contextPath}/security/hdw/battery_foregift/index.htm">押金设置</a></dd>
                        </#if>
                        <#if contain_oper('3_17_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0316'>selected</#if>"
                                   href="${contextPath}/security/basic/customer_foregift/index.htm">客户押金设置</a></dd>
                        </#if>
                    </dl>
                </@has_any_oper>
                <@has_any_oper oper_codes=['4_1_1', '4_3_1']>
                    <dl <#if menuCode?starts_with("04")>class="selected"</#if>>
                        <dt>
                            <span class="icon icon_pz"></span>
                            <span class="text">商品管理</span>
                        </dt>
                        <#if contain_oper('4_1_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0401'>selected</#if>"
                                   href="${contextPath}/security/hdw/item/index.htm">商品管理</a></dd>
                        </#if>
                        <#if contain_oper('4_3_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0402'>selected</#if>"
                                   href="${contextPath}/security/hdw/item_order/index.htm">商品订单</a></dd>
                        </#if>
                    </dl>
                </@has_any_oper>
                <@has_any_oper oper_codes=['5_1_1', '5_2_1', '5_3_1']>
                    <dl <#if menuCode?starts_with("05")>class="selected"</#if>>
                        <dt>
                            <span class="icon icon_pz"></span>
                            <span class="text">短信管理</span>
                        </dt>
                        <#if contain_oper('5_1_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0501'>selected</#if>"
                                   href="${contextPath}/security/basic/sms_config/index.htm">短信接口</a></dd>
                        </#if>
                        <#if contain_oper('5_2_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0502'>selected</#if>"
                                   href="${contextPath}/security/basic/mobile_message_template/index.htm">短信模板</a></dd>
                        </#if>
                    <#--<#if contain_oper('5_3_1')>-->
                    <#--<dd><a class="<#if menuCode?? && menuCode =='0503'>selected</#if>"-->
                    <#--href="${contextPath}/security/main/index.htm">短信管理</a></dd>-->
                    <#--</#if>-->
                    </dl>
                </@has_any_oper>
                <@has_any_oper oper_codes=['6_1_1', '6_2_1', '6_3_1', '6_4_1','6_5_1', '6_6_1', '6_8_1', '6_9_1']>
                    <dl <#if menuCode?starts_with("06")>class="selected"</#if>>
                        <dt>
                            <span class="icon icon_pz"></span>
                            <span class="text">用户管理</span>
                        </dt>
                        <#if contain_oper('6_1_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0601'>selected</#if>"
                                   href="${contextPath}/security/basic/system_config/index.htm">系统配置</a></dd>
                        </#if>
                        <#if contain_oper('6_2_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0602'>selected</#if>"
                                   href="${contextPath}/security/basic/feedback/index.htm">意见反馈</a></dd>
                        </#if>
                        <#if contain_oper('6_3_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0603'>selected</#if>"
                                   href="${contextPath}/security/basic/app_grade/index.htm">评分</a></dd>
                        </#if>
                        <#if contain_oper('6_4_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0604'>selected</#if>"
                                   href="${contextPath}/security/basic/about_us/index.htm">关于我们</a></dd>
                        </#if>
                        <#if contain_oper('6_5_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0605'>selected</#if>"
                                   href="${contextPath}/security/basic/sign_in_log/index.htm">签到</a></dd>
                        </#if>
                        <#if contain_oper('6_6_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0606'>selected</#if>"
                                   href="${contextPath}/security/hdw/exchange_amount_money_divide/index.htm">换电金额分配</a>
                            </dd>
                        </#if>
                        <#if contain_oper('6_8_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0607'>selected</#if>"
                                   href="${contextPath}/security/basic/upgrade_pack/index.htm">安装包升级</a></dd>
                        </#if>
                        <#if contain_oper('6_9_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0608'>selected</#if>"
                                   href="${contextPath}/security/basic/customer_protocol/index.htm">客户阅读协议</a></dd>
                        </#if>
                    </dl>
                </@has_any_oper>
                <@has_any_oper oper_codes=['7_1_1','7_2_1','7_3_1','7_4_1','7_5_1','7_6_1']>
                    <dl <#if menuCode?starts_with("07")>class="selected"</#if>>
                        <dt>
                            <span class="icon icon_pz"></span>
                            <span class="text">报表</span>
                        </dt>
                        <#if contain_oper('7_1_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0701'>selected</#if>"
                                   href="${contextPath}/security/hdw/report/agent_day_index.htm">运营商日报表</a></dd>
                        </#if>
                        <#if contain_oper('7_2_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0702'>selected</#if>"
                                   href="${contextPath}/security/hdw/report/agent_month_index.htm">运营商月报表</a></dd>
                        </#if>
                        <#if contain_oper('7_3_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0703'>selected</#if>"
                                   href="${contextPath}/security/hdw/report/agency_day_index.htm">代理商日报表</a></dd>
                        </#if>
                        <#if contain_oper('7_4_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0704'>selected</#if>"
                                   href="${contextPath}/security/hdw/report/agency_month_index.htm">代理商月报表</a></dd>
                        </#if>
                        <#if contain_oper('7_5_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0705'>selected</#if>"
                                   href="${contextPath}/security/hdw/report/cabinet_day_index.htm">换电柜日报表</a></dd>
                        </#if>
                        <#if contain_oper('7_6_1')>
                            <dd><a class="<#if menuCode?? && menuCode =='0706'>selected</#if>"
                                   href="${contextPath}/security/hdw/report/cabinet_month_index.htm">换电柜月报表</a></dd>
                        </#if>
                    </dl>
                </@has_any_oper>
            </#if>
        </div>
    </div>
</div>
<div class="splitter"><span class="split_left"></span></div>
<script>
    $(function () {
        $(".splitter span").click(function () {
            if ($(".left_bar").hasClass("none")) {
                $(".left_bar").removeClass("none");
                $(".content").css({"left": "240px"});
                $(this).removeClass("split_right").addClass("split_left");
            } else {
                $(".left_bar").addClass("none");
                $(".content").css({"left": "9px"});
                $(this).addClass("split_right").removeClass("split_left");
            }
        });


        $(".left_bar .nav dl").click(function () {
            if ($(this).hasClass("show")) {

                $(this).removeClass("show");
            } else {
                $(".left_bar .nav dl.show").removeClass("show");
                $(this).addClass("show");
            }
            $(".nano").nanoScroller({alwaysVisible: true});
        });


        $(".nano").nanoScroller({alwaysVisible: true});
    });
</script>

</#macro>

<#function format_time d>
    <#return d?string('HH:mm:ss')>
</#function>

<#function format_date d>
    <#return d?string('yyyy-MM-dd')>
</#function>

<#function format_date_minute d>
    <#return d?string('yyyy-MM-dd HH:mm')>
</#function>

<#function format_date_time d>
    <#return d?string('yyyy-MM-dd HH:mm:ss')>
</#function>

<#function format_file_size size>
    <#if size lte 0>
        <#return "0B">
    <#elseif size gte 1024 * 1024 * 1024>
        <#return (size / (1024 * 1024 * 1024))?string("#.##") + "GB">
    <#elseif size gte 1024 * 1024>
        <#return (size / (1024 * 1024))?string("#.##") + "MB">
    <#elseif size gte 1024>
        <#return (size / (1024))?string("#.##") + "KB">
    <#else>
        <#return size?c + "B">
    </#if>
</#function>

